/**
 *  此js现在 app-address_match 函数没用，已被 login.js - initModule 函数替代
 *  地址动态注册详见 login.js - initModule
 */
$(function () {

    app_address_match();

    setEnterpriseSearchIframeSrc();
});
/**
 * 正式环境地址注册
 */
var app_address_match = function () {
    //首页
    $(".app_app_index").click(function(){
        window.location.href = app_address.app_index;
    });

    //宏观数据
    $(".app_macro_economic").click(function(){
        window.location.href = app_address.macro_data_manage.macro_economic;
    });
    //宏观数据
    $(".app_new_town_industry").click(function(){
        window.location.href = app_address.macro_data_manage.new_town_industry;
    });
    //宏观数据
    $(".app_macro_search").click(function(){
        window.location.href = app_address.macro_data_manage.macro_search;
    });
    //宏观数据
    $(".app_macro_form").click(function(){
        window.location.href = app_address.macro_data_manage.macro_form;
    });
    //宏观数据
    $(".app_macro_iden").click(function(){
        window.location.href = app_address.macro_data_manage.macro_iden_form;
    });

    //项目管理
    $(".app_project_manage").click(function(){
        window.location.href = app_address.project_build_manage.project_manage;
    });
    //项目管理
    $(".app_project_search").click(function(){
        window.location.href = app_address.project_build_manage.project_search;
    });
    //项目管理
    $(".app_project_statistics").click(function(){
        window.location.href = app_address.project_build_manage.project_statistics;
    });


    //目标进度管理
    $(".app_objective").click(function(){
        window.location.href = app_address.target_schedule_manage.objective;
    });
    //目标进度管理
    $(".app_target_check").click(function(){
        window.location.href = app_address.target_schedule_manage.target_check;
    });
    //目标进度管理
    $(".app_target_monitor").click(function(){
        window.location.href = app_address.target_schedule_manage.target_monitor;
    });


    //企业查询分析
    $(".app_enterprise_search").click(function(){
        window.location.href = app_address.enterprise_search_analysis.enterprise_search;
    });
    //企业查询分析
    $(".app_enterprise_framework").click(function(){
        window.location.href = app_address.enterprise_search_analysis.enterprise_framework;
    });
    //企业查询分析
    $(".app_one_company_one_record").click(function(){
        window.location.href = app_address.enterprise_search_analysis.one_company_one_record;
    });


    //经济作战地图
    $(".app_enterprise_space_search").click(function(){
        window.location.href = app_address.economic_fight_map.enterprise_space_search;
    });
    //经济作战地图
    $(".app_gallery").click(function(){
        window.location.href = app_address.economic_fight_map.gallery;
    });

    //信息管理
    $(".app_result_manage").click(function(){
        window.location.href = app_address.info_manage.result_manage;
    });
    //信息管理
    $(".app_info_push").click(function(){
        window.location.href = app_address.info_manage.info_push;
    });


    //系统管理
    $(".app_data_manage").click(function(){
        window.location.href = app_address.system_manage.data_manage;
    });
    //系统管理
    $(".app_user_manage").click(function(){
        window.location.href = app_address.system_manage.user_manage;
    });
    //系统管理
    $(".app_role_manage").click(function(){
        window.location.href = app_address.system_manage.role_manage;
    });

    //业务数据管理（数据管理子系统）
    $(".data_manage").click(function(){
        window.location.href = app_address.user_manage.data_manage;
    });
};


/**
 * 页面加载之前给 引用的 帆软报表 iframe src赋值
 */
function setEnterpriseSearchIframeSrc() {
    $("#enterprise_search_id").attr("src",window.fanruan.enterprise_search_path);
}
